home *** CD-ROM | disk | FTP | other *** search
- Path: sydney.DIALix.oz.au!not-for-mail
- From: accolyte@sydney.DIALix.oz.au (Troy Till)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Stopping Sound Channels
- Date: 16 Jan 1996 11:52:14 +1100
- Organization: DIALix Services, Sydney, Australia.
- Sender: accolyte@sydney.DIALix.oz.au
- Message-ID: <4desru$ope$1@sydney.DIALix.oz.au>
- References: <30f849ff@beachyhd.demon.co.uk>
- NNTP-Posting-Host: accolyte@sydney.dialix.oz.au
-
- Adam@beachyhd.demon.co.uk wrote:
- : In a message of 13 Jan 96 Troy Till wrote to All:
- :
- : TT> I'm trying to stop sounds half-way through by simply turning off the
- : TT> audio dma - but most of the time I get an annoying click. I've tried
- : TT> setting the volume to zero first, and a few other things, but nothing
- : TT> seems to help. Any ideas?
- :
- : I could be wrong, but I think the problem is quite possibly unavoidable.
- : What causes the sound is the difference in the amplitude between each
- : sample that is played. When you suddenly set the amplitude to zero (by
- : stopping the DMA or setting the volume to 0) you create a large
- : differential, as the amplitude suddenly cuts off. That's what causes the
- : click..
- :
- :
- : ..
- : .'' ``.
- : .' `.
- : . .' `. .....
- : `. .' `.
- : `. ,' `.
- : ``..'' ``..
- :
- :
- : ^ Sound turned off here
-
- Hmm not much you can do about that I guess.. I tried fading out the
- sound, as per an email suggestion, but it still had the click. It turned
- out I was screwing something up when starting the next sound.. :)
- So it works now, but it's a shame you can't stop the sound without fading
- it out (however quickly the fade is done)
-
- Troy.
-
-